cmake_minimum_required(VERSION 2.8)
project(UR)
find_package(OpenCV 3.1 REQUIRED)
#set(OpenCV_INCLUDE_DIRS "/usr/local/include")
#set(OpenCV_LIBRARY_DIRS "/usr/local/lib")
#link_directories(${Opencv_LIBRARY_DIRS})
include_directories(${OpenCV_INCLUDE_DIRS} ${CMAKE_CURRENT_LIST_DIR}/include)
SET(SRC_FOLDER src)
FILE(GLOB_RECURSE SRC_FILES "${SRC_FOLDER}/*.cpp")
#message("**************")
#message(${OpenCV_INCLUDE_DIRS})
#message(${OpenCV_LIBRARY_DIRS})
message("**************")
add_executable(UR ${SRC_FILES})
target_link_libraries(UR ${OpenCV_LIBS})

SET(CMAKE_BUILD_TYPE "Debug")
SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g -ggdb")
SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")

